package cn.tedu.imop.basic.service.impl;

import cn.tedu.imop.basic.dao.repository.TagLibraryRepository;
import cn.tedu.imop.basic.entity.TagLibrary;
import cn.tedu.imop.basic.service.TagLibraryService;
import cn.tedu.imop.common.pojo.PageData;
import org.springframework.stereotype.Service;

@Service
public class TagLibraryServiceImpl implements TagLibraryService {

    private TagLibraryRepository tagLibraryRepository;
    public TagLibraryServiceImpl(TagLibraryRepository tagLibraryRepository) {
        this.tagLibraryRepository = tagLibraryRepository;
    }
    @Override
    public Boolean createTagLibrary(TagLibrary tagLibrary) {
        tagLibraryRepository.insertTagLibrary(tagLibrary);
        return true;
    }

    @Override
    public PageData<TagLibrary> getTagLibraryList(TagLibrary tagLibrary) {
        return tagLibraryRepository.selectTagLibraryList(tagLibrary);
    }
}
